<?php   if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<htm>
    <head>
        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
        <base href="<?php echo base_url();?>"/>
        <title>编辑器实例</title>
        <script type='text/javascript'>
            window.UEDITOR_HOME_URL = "<?php echo base_url();?>365/views/ueditor/";
        </script>
        <script type='text/javascript' src='<?php echo base_url();?>365/views/ueditor/editor_config.js'></script>
        <script type='text/javascript' src='<?php echo base_url();?>365/views/ueditor/editor_all.js'></script>
        <link rel='stylesheet' href='<?php echo base_url();?>365/views/ueditor/themes/default/ueditor.css'/>
    </head>
    <body>
        <form action='test.php' method='post' name='myForm'>
            <div id="myEditor" name='ok'><p>UEditor DEMO</p></div>
            <input type='submit' value='发布'/>
            <input type='reset' value='重置'/>
        </form>
        
        <script type='text/javascript'>
            //自定义配置项,覆盖editor_config.js中的同名配置
            var editorOption = {
                //自定义工具栏按钮
                toolbars:[['source','bold','italic','underline','strikethrough','justifyleft','justifycenter'
                            ,'justifyright','forecolor','backcolor','paragraph','fontfamily','fontsize'
                            ,'insertimage','emotion','inserttable','deletetable']],
                wordCount: false,
                elementPathEnabled:false
            };
            var editor_a = new baidu.editor.ui.Editor(editorOption);
            editor_a.render('myEditor');
        </script>
    </body>
</htm>


